<template>
  <div class="right-container">
    <h3>Right 组件</h3>
    <hr />

    <p>carList 值：{{ vCartList }}</p>
    <p>carList 值：{{ cartList }}</p>
    <button class="btn btn-warning">-1</button>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
  name: 'Right',
  data () {
    return {
      cartList: '自己的cartList'
    }
  },
  computed: {
    // ...mapState('cart', ['cartList'])
    
    ...mapState('cart', { vCartList: 'cartList' })
  }
}
</script>

<style></style>
